import request from '../utils/request';
import { stringify } from 'qs';
import { baseServerUrl } from '../utils/Constant';

export async function orderReportPage(params) {
  return request(`${baseServerUrl}/tms/report/page/${params.pageSize}/${params.current}`, {
    method: 'POST',
    body: params,
  });
}

export async function costReportPage(params) {
  return request(`${baseServerUrl}/tms/report/costReportPage?${stringify(params)}`, {
    method: 'GET',
  });
}

export async function invoiceReportPage(params) {
  return request(`${baseServerUrl}/tms/report/invoiceReportPage?${stringify(params)}`, {
    method: 'GET',
  });
}
